/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 15:16:59
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class EduCertificateUserListBean implements java.io.Serializable {

    // columns START
    // ID
    private Long id;
    // 证书ID
    private Long certId;
    private String certName;
    // 人员ID
    private Long userId;
    private String userName;
    // 性别
    private String sex;
    // 取证日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date takenTime;
    // 到期日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date outOfDateTime;

    private String departName;
    private String jobName;
    private String company;
    // 证书有效期类型
    private String effectiveTypeName;

    // 证书编号
    private String certNo;

    //外部链接URL
    private String refUrl;
    // columns END

    //证书状态: 有效; 已过期
    private String certStatus;

    @Data
    public static class SearchEduCertificateUser implements java.io.Serializable {

        @NotNull(field = "证书ID不能为空")
        private Long certId;
        // 人员姓名
        private String userName;

        private Byte effectiveType;

        //证书状态: 有效; 已过期
        private String certStatus;

    }

}
